<?php
try {
    something();
}
catch(Exception $e) {
    return false;
}
?>